home *** CD-ROM | disk | FTP | other *** search
/ Inside Indy 1993 / Inside Indy 1993.iso / demos / WorkShop / remove.WorkShop < prev    next >
Encoding:
Text File  |  1993-06-23  |  853 b   |  26 lines

  1. #!/bin/csh
  2.  
  3. # Env variable for WorkShop directory
  4. setenv WSDIR /CDROM/demos/WorkShop
  5.  
  6. # Check to see if WorkShop is already on the system
  7. set EXISTS = `$WSDIR/chkinstall WorkShop`
  8. if ($EXISTS == "no" ) then
  9.     if (`$WSDIR/xconfirm -B "Okay" -t "WorkShop is not currently intalled on this system."` == "Okay") exit
  10. else
  11.     if (`$WSDIR/xconfirm -B "cancel" -b "remove" -t "Okay to remove CASEVision/WorkShop from your system?"` == "cancel") exit
  12. endif
  13.  
  14. # Remove product
  15. /usr/sbin/xwsh -bg royalblue -fg white \
  16.    -geom 80x20+100+100 \
  17.    -title "Removing WorkShop..." \
  18.    -e /bin/csh -c \
  19.    "echo ; \
  20.     echo Removal of this product requires ROOT privileges.; \
  21.     echo If your system has a ROOT password, you must enter it.; \
  22.     echo If you have no ROOT password, you will not be prompted for it.; \
  23.     echo ; \
  24.     su root -c '$WSDIR/remove.root'"
  25.  
  26.